# -*- coding: utf-8 -*-

# from django import forms
# from django.contrib.admin import widgets
# from .models import Rule
#
# #from datetime import datetime
#
# # class RuleForm(forms.ModelForm):
# #     class Meta:
# #         model = Rule
# #         fields = ['title', 'comments', 'scope', 'scope_attr', 'condition',
# #                   'action', 'trigger', 'enabled']
# #
# #         widgets = {
# #             'comments': forms.Textarea,
# #             'enabled': forms.CheckboxInput(),
# #         }
# #
# #     def __init__(self, *args, **kwargs):
# #         super(RuleForm, self).__init__(*args, **kwargs)
